package com.imooc.user;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * 用户服务
 */
@SpringBootApplication(exclude = MongoAutoConfiguration.class)
// Mybatis 扫描的包路径, 识别 xxxMapper.java 所在的位置
@MapperScan(basePackages = "com.imooc.user.mapper")
// SpringBean 扫描的包路径, 指定那些路径下的 Bean可以被 Spring 管理
@ComponentScan(basePackages = {"com.imooc", "org.n3r.idworker"})
public class UserApplication {

    public static void main(String[] args) {
        SpringApplication.run(UserApplication.class, args);
    }

}
